package com.ruoyi.bcsettings.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bcsettings.mapper.ErpMarketingManagerMapper;
import com.ruoyi.bcsettings.domain.ErpMarketingManager;
import com.ruoyi.bcsettings.service.IErpMarketingManagerService;

/**
 * 营销经理Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-10
 */
@Service
public class ErpMarketingManagerServiceImpl implements IErpMarketingManagerService 
{
    @Autowired
    private ErpMarketingManagerMapper erpMarketingManagerMapper;

    /**
     * 查询营销经理
     * 
     * @param id 营销经理主键
     * @return 营销经理
     */
    @Override
    public ErpMarketingManager selectErpMarketingManagerById(Integer id)
    {
        return erpMarketingManagerMapper.selectErpMarketingManagerById(id);
    }

    /**
     * 查询营销经理列表
     * 
     * @param erpMarketingManager 营销经理
     * @return 营销经理
     */
    @Override
    public List<ErpMarketingManager> selectErpMarketingManagerList(ErpMarketingManager erpMarketingManager)
    {
        return erpMarketingManagerMapper.selectErpMarketingManagerList(erpMarketingManager);
    }

    /**
     * 新增营销经理
     * 
     * @param erpMarketingManager 营销经理
     * @return 结果
     */
    @Override
    public int insertErpMarketingManager(ErpMarketingManager erpMarketingManager)
    {
        return erpMarketingManagerMapper.insertErpMarketingManager(erpMarketingManager);
    }

    /**
     * 修改营销经理
     * 
     * @param erpMarketingManager 营销经理
     * @return 结果
     */
    @Override
    public int updateErpMarketingManager(ErpMarketingManager erpMarketingManager)
    {
        return erpMarketingManagerMapper.updateErpMarketingManager(erpMarketingManager);
    }

    /**
     * 批量删除营销经理
     * 
     * @param ids 需要删除的营销经理主键
     * @return 结果
     */
    @Override
    public int deleteErpMarketingManagerByIds(Integer[] ids)
    {
        return erpMarketingManagerMapper.deleteErpMarketingManagerByIds(ids);
    }

    /**
     * 删除营销经理信息
     * 
     * @param id 营销经理主键
     * @return 结果
     */
    @Override
    public int deleteErpMarketingManagerById(Integer id)
    {
        return erpMarketingManagerMapper.deleteErpMarketingManagerById(id);
    }
}
